#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<math.h>
int main()
{
    char n;
    scanf("%c", &n);
    for (int i = -2; i <= 2; i++)
    {
        for (int j = 1; j <= fabs(i); j++)
        {
            printf(" ");

        }
        for (int j = 1; j <= 5 - 2 * fabs(i); j++)
        {
            printf("%c", n);
        }
        printf("\n");
    }

    return 0;
}